<ion-content>
  <div class="cover-header">
    <h1>{{title}}</h1>
    <p>给您呈现最详尽的工厂信息</p>
  </div>
  <ion-item>
    <ion-label>按业务筛选:</ion-label>
    <ion-select placeholder="请选择主营业务" multiple="true" [(ngModel)]="businessFilter" name="businessFilter">
      <ion-option *ngFor="let item of MainBusiness" value="{{item.value}}">
        {{item.label}}
      </ion-option>
    </ion-select>
  </ion-item>
  <ion-list>
    <div *ngIf="!factoryList||factoryList.length===0">
      <h2 class="emptydata">暂无工厂数据</h2>
    </div>
    <ion-item *ngFor="let item of filter(factoryList)">
      <h2>{{item.name}}</h2>
      <h3>主营业务:{{item.main_business_name}}</h3>
      <p>简介:{{item.desc||'无'}}</p>
      <ion-row>
        <ion-col></ion-col>
        <ion-col></ion-col>
        <ion-col>
          <button ion-button icon-left clear small (click)="toFactoryDetail(item)">
            <div>查看详情</div>
          </button>
        </ion-col>
      </ion-row>
    </ion-item>
  </ion-list>
</ion-content>

